package java05;

public class SystemTest02 {
    public static void main(String[] args){
        long startTime = System.currentTimeMillis();//循环开始的当前时间
        int sum = 0;
        for(int i = 0; i < 100000000; i++){
            sum = sum + 1;
        }
        long endTime = System.currentTimeMillis();//循环结束后的当前时间
        System.out.println("程序运行时间为：" + (endTime - startTime) + "毫秒");
    }
}
